﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_CM_GetAllContactLinkman]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_CM_GetAllContactLinkman];
GO
CREATE PROCEDURE [dbo].[sproc_CM_GetAllContactLinkman]

AS

    SELECT UDS_CM_Linkman.*,UDS_CM_ClientContact_Linkman.ContactID FROM UDS_CM_ClientContact_Linkman,UDS_CM_Linkman 
    WHERE UDS_CM_ClientContact_Linkman.LinkmanID=UDS_CM_Linkman.ID